<template>
  <div class="block">
    <el-carousel height="460px">
      <el-carousel-item>
        <img src="./assets/img/banner1.jpg" alt="" />
      </el-carousel-item>
      <el-carousel-item>
        <img src="./assets/img/banner2.jpg" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
  export default {
    name: 'banner',
    data() {
      return {}
    }
  }

</script>

<style scoped>
  .block {
    margin-top: 85px;
  }

  .el-carousel {
    position: relative;
  }

  .el-carousel img {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -960px;
  }

</style>
